/**
 * @Title: CustomerMentionDao
 * @Package cn.com.yiqi.wsc.dao.customer
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-林威
 * @date 2017/3/16 16:25
 * @version V1.0
 */
package cn.com.yiqi.wsc.dao.customer;

import cn.com.artemis.framework.base.commons.persistence.CrudDao;
import cn.com.yiqi.wsc.Ro.BirthdayTaskDO;
import cn.com.yiqi.wsc.entity.customer.CustomerMention;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 *@ClassName: CustomerMentionDao
 * Description: TODO
 * @author 会员系统组-林威
 * @date 2017/3/16 16:25
 *
 */
@Repository
public interface CustomerMentionDao extends CrudDao<CustomerMention>{
    List<CustomerMention> selectByUserId(@Param("userId") Integer userId, @Param("id") Integer id);

    void deleteByIdAndUserId(@Param("id") Integer id, @Param("userId") Integer userId);

    List<CustomerMention> selectByCustomerId(@Param("customerId") Integer customerId);

    List<BirthdayTaskDO> findBirthdayTask(Integer beforeDays);
}
